import Vue from "vue";
// import VueRouter from "vue-router";
import Router from "@/vuerouter";
import Home from "../views/Home.vue";

Vue.use(Router);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/about",
    name: "About",
    component: () => import("../views/About.vue")
  },
  {
    path: "/notfound",
    name: "NotFound",
    component: () => import("../views/NotFound.vue")
  }
];

const router = new Router({
  routes
});

export default router;
